import { configureStore } from "@reduxjs/toolkit";
import counterSlice from "./slice/counterSlice";
import todoSlice from "./slice/todoSlice";
import incomesSlice from "./balanceSlice/incomesSlice";
import expensesSlice from "./balanceSlice/expensesSlice";
// configureStore创建一个redux数据
const store = configureStore({
  // 合并多个Slice
  reducer: {
    counter: counterSlice,
    todo: todoSlice,
    incomes: incomesSlice,
    expenses: expensesSlice,
  },
});

export default store;
